package kz.kstu.shop.business.util.logger;

/**
 * @author Filipp_Stankevich
 *         created: 8/10/11 10:16 AM
 */
public class Logger {

    private org.apache.log4j.Logger logger;

    private Logger(Class<?> loggerClass) {
        logger = org.apache.log4j.Logger.getLogger(loggerClass);
    }

    public static synchronized Logger getLogger(Class<?> loggerClass) {
        return new Logger(loggerClass);
    }

    public void debug(String message) {
        logger.debug(message);
    }

    public void error(String message, Throwable t) {
        logger.debug(message, t);
    }
}
